package controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class TestController {
	 	@RequestMapping(value="/welcome")
	    public ModelAndView  welcomeHandler() {
	 		ModelAndView mav = new ModelAndView("welcome");
	 		mav.addObject("what", "Hello World!");
	 		System.out.println(mav.toString());
	 		return mav;
	    }
}
